package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 自媒体图文素材信息表
 *
 * @TableName wm_material
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("wm_material")
public class WmMaterial implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Object id;
    /**
     * 自媒体用户ID
     */
    @TableField("user_id")
    private Object userId;
    /**
     * 图片地址
     */

    private String url;
    /**
     * 素材类型
     * 0 图片
     * 1 视频
     */
    private Short type;
    /**
     * 是否收藏
     */
    @TableField("is_collection")
    private Short isCollection;
    /**
     * 创建时间
     */
    @TableField("created_time")

    private Date createdTime;


}